<template>
    <div class="good-list">
        <ul>
            <li
                v-for="good in goods"
                :key="good.id"
            ><nuxt-link :to="'/detail/'+good.id">{{good.title}}</nuxt-link></li>
        </ul>
    </div>
</template>

<script>
export default {
    data(){
        return {
            goods:[
                {id:1,title:"香蕉"},
                {id:2,title:"橘子"},
                {id:3,title:"橙子"}
            ]
        }
    }
}
</script>

<style>

</style>
